package com.offcn.utils;


import java.util.List;

public class PageUtils<T> {
    //页量
    private int pageSize;
    //当前页码
    private int currentPage;
    //总记录数
    private int totalCount;
    //当前页的数据
    private List<T> tableData;

    public PageUtils() {
    }

    public PageUtils(int pageSize, int currentPage, int totalCount, List<T> tableData) {
        this.pageSize = pageSize;
        this.currentPage = currentPage;
        this.totalCount = totalCount;
        this.tableData = tableData;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public List<T> getTableData() {
        return tableData;
    }

    public void setTableData(List<T> tableData) {
        this.tableData = tableData;
    }
}
